import request from './request';

export const goodsList = (data) => request({
    url: `/goods`,
    method: "get",
    params: data
})

export const addGoods = (data) => request({
    url: `/goods`,
    method: "post",
    data
})


export const editGoods = (id) => request({
    url: `/goods/${id}`,
    method: "get",

})

export const editsGoods = (id,data) => request({
    url: `/goods/${id}`,
    method: "put",
    data
})

export const del = (id) => request({
    url: `/goods/${id}`,
    method: "delete",
})